class AddMetadataToResourceItems < ActiveRecord::Migration
  def self.up
    add_column :resource_items, :doc_type, :integer
    add_column :resource_items, :published, :date
    add_column :resource_items, :size, :string
    add_column :resource_items, :source, :text
    add_column :resource_items, :author, :text
  end

  def self.down
    remove_column :resource_items, :author
    remove_column :resource_items, :source
    remove_column :resource_items, :size
    remove_column :resource_items, :published
    remove_column :resource_items, :doc_type
  end
end
